package com.pfzhang.generics;

class GenericWrapper<T> {
	private T data;

	public GenericWrapper(T data){
		this.data = data;
	}
	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}


public class GenericsDemo{
	public static void main(String[] args) {
		GenericWrapper<String> w1 = new GenericWrapper<>("string1");
		String d1 = w1.getData();
		MyImplements imp = new MyImplements();
		imp.test("haha");
		
	}
}